<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php include  CORE_PATH . 'cake' . DS . 'config' .DS.'vendor_info.php'?>
<head>
	<?php echo $html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>
	<?php 
			$siteUrl = Configure::read("cmsConfig.Backend.siteUrl");
			if(!$siteUrl)
			{
				$siteUrl = Router::url("/",true);
			}else
			{
				$siteUrl .= '/'; 
			}
		?>
	<script>
		var URL='<?php echo $siteUrl;?>';
		var ErrorMsg = <?php echo $encodedErrorMsgs?>;
	</script>
	<?php
		echo $html->meta('icon');
	?>
	
	<?php
		echo $javascript->link(array('/js/jquery-1.7.2.min','/cms/js/main.js'));
		echo $html->meta('icon');
		echo $html->defaultCss();
		echo $html->css('common');
        if(cr("cmsInstalled"))
		{
          echo $html->css('style');
        }
        echo $html->css('theme');
		echo $javascript->getCompressedJs();
		echo $scripts_for_layout;
		echo $html->getCompressedCss();
		echo $startup_js;
	?>

</head>
<body>
	<div id="container">
		<div id="header">
			<h1><?php echo $title_for_layout; ?></h1>
		</div>
		<div id="content" class="main">

			<?php $session->flash(); ?>

			<?php echo $content_for_layout; ?>

		</div>
		<div id="footer">
			&nbsp;&nbsp; Powered By <?php echo $html->link($config['Vendor']['company'],$config['Vendor']['url']);?><br />
		</div>
	</div>
	<?php echo $cakeDebug; ?>
</body>
</html>